<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>渐变演示</title>
    <style>
    div {
        width: 300px;
    }
    
    div {
        background: #466368;
        background: linear-gradient(to right bottom, black, white);
        border-radius: 6px;
        height: 120px;
    }
    
    .deg {
        background: #466368;
        background: linear-gradient(135deg, black, white);
        border-radius: 6px;
        height: 120px;
    }
    </style>
</head>

<body>
    <div></div>
    <div class="deg"></div>
</body>

</html>
